package net.pugsplace.gpremacy.state;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.HashMap;

import net.pugsplace.gpremacy.rules.Country;
import net.pugsplace.gpremacy.rules.Market;

public class Economy implements Serializable {
	private static final long serialVersionUID = -397675903764634471L;

	private Market market;
	private Industry industry;
	private HashMap<Country, BigInteger> debt;

	public void setMarket(Market m) {
		market = m;
	}

	public void setIndustry(Industry i) {
		industry = i;
	}

	public Market getMarket() {
		assert market != null;
		return market;
	}

	public Industry getIndustry() {
		assert industry != null;
		return industry;
	}

	public BigInteger getDebt(Country country) {
		return debt.get(country);
	}

	public void setDebt(Country country, BigInteger value) {
		debt.put(country, value);
	}
}
